<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>

<title><if condition="$detail.title neq ''">{$detail.title} - <else/><if condition="$cat.title neq ''">{$cat.title} - </if></if><if condition="$ctitle neq ''">{$ctitle} - </if> {$config.ctitle}</title>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <meta name="keywords"<if condition="$detail.keywords neq ''">content="{$detail.keywords}"<else/>content="{$config.keywords}"</if>>
            <meta name="description"<if condition="$detail.description neq ''">content="{$detail.description}"<else/>content="{$config.description}"</if>>
                <link rel="stylesheet" type="text/css" href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/base.css" />
                <link rel="stylesheet" type="text/css" href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/common.css" />
                <link rel="stylesheet" type="text/css" href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/main.css" />
                <link href="__APP__/Application/{$Think.MODULE_NAME}/Public/css/commonAdmin.css" rel="stylesheet" type="text/css" />
                <script src="__PUBLIC__/js/jquery/jquery.js" type="text/javascript"></script>

                <script src="__APP__/Application/{$Think.MODULE_NAME}/Public/js/common.js" type="text/javascript"></script>
                <script type="text/javascript">
                    $(function(){
                        var len = $('.login-type').length;
                        var obj = $('#userMenus');
                        if(len == 1){
                            var obj = $('.login-type');
                        }
                        $('#top_top_user').hover(function(){
                            obj.show();
                          
                        },function(){
                            obj.hide();
                        })
                    })
                   
                </script>
                </head>
                <body>
                    <div class="filter" id="filter"></div>
                    <div class="filter" id="filter2"></div>
                   
                    <div id ="top">
                        <div id="top_inner">
                            <a class="logo" href="__APP__">
                                <img src="__APP__/{$Think.config.picFile}{$config.logo}" style="margin:6px 0 0"/>
                            </a>
                             <if condition="$sessionAreaId gt 0">
                            <ul class="top_NewNava">

                                <li <if condition="$action eq 'Area'">class="active"</if>>
                                    <if condition="$Think.session.area gt 0">
                                        <a href="{:U('Area/lists',array('id'=>$sessionAreaId))}">订餐吧</a>
                                        <else/>
                                        <a href="__APP__">订餐吧</a>
                                    </if>
                                </li>
                                <li <if condition="$action eq 'Gifts'">class="active"</if>><a href="{:U('Gifts/index')}">积分商城</a></li>
                                <!--                            <li <if condition="$action eq 'Login'">class="active"</if>><a href="{:U('Login/index')}">商家加盟</a></li>-->
                                <li <if condition="$action eq 'Order' && $mod eq 'find'">class="active"</if>><a href="{:U('Order/find')}">催 单</a></li>                           
                                <li <if condition="$action eq 'Say'">class="active"</if>><a href="{:U('Say/index')}">说 说</a></li>
                            </ul>
                            <div id="top_quickmenu" class="quick_menu">
                                <dl>
                                    <dd>
                                        <a id="top_MyOrderLink" class="MyOrderLink" href="{:U('Member/order')}">我的订单</a>
                                    </dd>
                                    <dd class="all_mess"  onclick="$('#top_MessageContent').show()">
                                        <span id="top_notification" class="notification has_noti" >
                                            <b class="message_prompt"tabindex="1" >&nbsp;</b> 
                                            <if condition="$ordernum gt 0"> <span id="top_num" class="num">{$ordernum}</span></if>
                                            <div id="top_MessageContent" class="layer_top_account layer_top_Message br4 shadow " style="display: none">
                                                <span class="arrow"></span>
                                                <ul id="top_MessageBox" class="MessageBox" tabindex="1" >
                                                    <empty name="orders">
                                                        <li class="No_Message_Type">
                                                            <div>今日没有消息</div>
                                                        </li>
                                                        <else/>
                                                        <foreach name="orders" item="row">
                                                            <li>
                                                                <div>
                                                                    <div class="l">
                                                                        <strong>订单提交成功</strong>
                                                                    </div>
                                                                    <div class="r">{$row.addtime|tranTime=###}</div>
                                                                       <div class="clear"></div>
                                                                </div>
                                                                <div>
                                                                    <div class="message">您在{$row.sname}的订单提交成功</div>
                                                                    <div class="r">
                                                                        <a href="{:U('Member/order')}">[查看]</a>
                                                                    </div>
                                                                </div>
                                                             
                                                            </li>
                                                        </foreach>
                                                        </empty>
                                                        <li class="btn clearfix noPointer">
                                                            <input class="setallmessage" onclick="know($(this))" data-url="{:U('Ajax/know')}" type="submit"value="知道了" />
                                                        </li>
                                                </ul>
                                            </div>
                                        </span>
                                    </dd>
                                    <dd id="top_top_user" class="Newaccount">
                                        <if condition="$userid gt 0">
                                            <div class='login_regist'>
                                                <a href="{:U('Member/index')}" class='log_btn regist user_logined UserNickName'>{$username}</a>
                                                <div class='layer_top_account layer_topInfo br4 shadow ' id="userMenus" style="display: none">
                                                    <span class='arrow'></span>
                                                    <ul>
                                                        <li><a href="{:U('Member/index')}" class='top_n1'>我的帐户</a></li>
                                                        <li><a href="{:U('Member/order')}" class='top_n2'>订单中心</a></li>
                                                        <li><a href="{:U('Member/sign')}" class='top_n20'>我的签到</a></li>
                                                        <li><a href="{:U('Index/logout')}" class='top_n4'>退出登录</a></li>
                                                    </ul>
                                                </div>
                                            </div>
                                            <else/>
                                            <div class="login_regist">
                                                <a class="log_btn" href="{:U('Login/index')}">登录</a>
                                                <span>|</span>
                                                <a class="log_btn regist" href="{:U('Reg/index')}">注册</a>
                                                <div class="login-type" style="display: none;">
                                                    <ul>
                                                        <li class="login-type1">
                                                            <a href="{:U('Login/index')}">本站帐号登录</a>
                                                        </li>
                                                        <li class="login-type2">
                                                            <a href="{:U('Index/login',array('type'=>sina))}">新浪微博登录</a>
                                                        </li>
                                                        <li class="login-type3">
                                                            <a href="{:U('Index/login',array('type'=>renren))}"> 人人网登录</a>
                                                        </li>
                                                        <li class="login-type4">
                                                            <a href="{:U('Index/login',array('type'=>qq))}">QQ登录</a>
                                                        </li>
                                                    </ul>
                                                </div>
                                            </div>
                                        </if>
                                    </dd>
                                </dl>
                            </div>
                            <form action="{:U('Area/search')}" method="get" name="formSearch">
                                <div id="search" class="fr br3" >
                                    <input id="keyword" type="text" name="keyword" value="搜索餐厅、美食" autocomplete="off" onkeydown="getSearchLists(event)" 
                                           onclick="clickInput($(this),'搜索餐厅、美食')" onblur="blurInput($(this),'搜索餐厅、美食')"/>
                                    <a class="serch_btn_a" onclick="document.formSearch.submit()">搜索</a>
                                    <div class="searchRes" id="searchRes"></div>
                                </div>
                            </form>
                                   </if>

                        </div>
                    </div>
                      
<link type="text/css" href="__PUBLIC__/css/index.css" rel="stylesheet" />
<script type="text/javascript" src="__PUBLIC__/js/area.js"></script>
<script type="text/javascript">
    function getCircleSchool(id,name){
        $.post("__APP__/index.php/Ajax/getArea",{
            id:id
        },function(data){
            $("#countries").hide();
      
            if(data){
                var len2 = data.length;
                var li2 = '';
                for(var j =0;j<len2;j++){
                    var url = "Area/lists/id/"+data[j]['id']+".html";
                    li2 += "<li><a title='"+data[j]['name']+"' target='_blank' href='"+url+"'>"+data[j]['name']+"</a></li>";
                }
                $('#ul_schools').html(li2);
                if(li2){
                    $('#schools').show();
                }
            }
            var cityname = $('#city').text();
            var cityid = $('#city').attr("data-id");
            var word = "{$word}";
            $('#site').html("<span class='topspan back' onclick=returnBackArea()></span>\n\
<span id='city' class='choose' style='cursor:pointer;'data-id="+cityid+" onclick=getCountry("+cityid+",$(this).text())><a class='triangle'></a>"+cityname+"</span>\n\
<img src='__PUBLIC__/images/dot.png' style='display: inline;'>\n\
<span id='area' data-id="+id+" class='choose'>"+name+"</span>");
            getTrianglePosition('area');
            $('#circlesSub').hide();
        },"json")
    }
</script>
<div class="Main_body">
    <div class="Sub_body" style="margin-top:50px">
        <div class="body_top" id="site">
            <span class="topspan" style="position: relative;top:5px;">请选择所在{$word}</span>
            <a class="triangle" style="display: block; left: 59px;"></a>
        </div>
        <div class="Main_subbody">
            <ul class="cities">
                <li class="clearfix">
                <foreach name="citys" item="row">
                    <span onclick="getCountry('{$row.id}',$(this).text())">{$row.name}</span> 
                </foreach>
                </li>
            </ul>
            <div class="allareas">
                <ul class="areas" id="countries"></ul>
            </div>
            <div class="list" id="schools" style="display: none">
                <ul id="ul_schools"></ul>
            </div>
            <div class="list shopareas" id="circlesSub" style="display: none">
                <ul id="ul_circlesSub"></ul>
            </div>
        </div>
    </div>
</div>
<input id="word" value="{$word}" type="hidden"/>

<include file="Index:footer" />